package com.mm.support.mapper;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.springframework.stereotype.Component;

import java.util.Arrays;


@Component
public class DTOMapperServiceDozerImpl implements DTOMapperService {
    Mapper mapper = new DozerBeanMapper(Arrays.asList("dozer.xml"));


    public <T> T map(Object o, Class<T> tClass) {
        return mapper.map(o, tClass);
    }



}
